using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace TestImport.View
{
    class StartSchermOpenen
    {
        public static Form openForm;
        public static Form nietActieveForm;
        private static StartScherm st1;
        private static StartSchermMetTabs st2;
        public StartSchermOpenen(bool metTabs)
        {
            st1 = new StartScherm();
            st2 = new StartSchermMetTabs();
            openForm = st1; nietActieveForm = st2;
            if (metTabs) { openForm = st2; nietActieveForm = st1; }
        }

        public static Form switchStartScherm()
        {
            openForm.Visible = false;
            if (InstParameters.Default.vStartschermMetTabs)
            {
                openForm = st2; nietActieveForm = st1;
            }
            else
            {
                openForm = st1; nietActieveForm = st2;
            }
            openForm.Show();
            return openForm;
            
        }

        public static void setBackColor()
        {
            st1.BackColor = InstParameters.Default.schermkleur;
            st2.BackColor = InstParameters.Default.schermkleur;
        }

        public static void close()
        {
            Application.Exit();
           
        }

    }
}
